﻿using BCEntity.OA.CallbackMethodDictionary;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace BCData.OA.CallbackMethodDictionary
{
    /// <summary>
    /// 回调方法字典
    /// </summary>
    public interface ICallbackMethodDictionaryData
    {
        /// <summary>
        /// 添加回调方法字典
        /// </summary>
        /// <param name="entity">回调字典方法</param>
        /// <returns></returns>
        Task<CallbackMethodDictionaryEntity> Add(CallbackMethodDictionaryEntity entity);
        /// <summary>
        /// 获取回调方法字典
        /// </summary>
        /// <param name="taskName">任务名称</param>
        /// <returns></returns>
        Task<CallbackMethodDictionaryEntity> Get(string taskName);
    }
}
